package com.cx.zhshopping.ui.binding_adapter;

import android.widget.CompoundButton;
import android.widget.Switch;

import androidx.databinding.BindingAdapter;

public class SwitchListener {

    @BindingAdapter(value = "checkSwitchListener" ,requireAll = false)
    public static void checkBoxListener(Switch switchView, CompoundButton.OnCheckedChangeListener listener){
        switchView.setOnCheckedChangeListener(listener);

    }
}
